package com.west.common.imageloader;

import android.support.annotation.DrawableRes;
import android.widget.ImageView;

/**
 * @author hanyulang
 * @date 2018/10/12
 */
public class ImageConfig {
    protected String url;
    protected @DrawableRes
    Integer uid;
    protected ImageView imageView;
    protected int placeHolder;
    protected int errorHolder;
    protected boolean isCenterCrop;
    protected boolean isCircile;
    protected boolean isGif;
    protected int[] w_h;

    @DrawableRes
    public Integer getUid() {
        return uid;
    }

    protected String getUrl() {
        return url;
    }

    protected ImageView getImageView() {
        return imageView;
    }

    protected int getPlaceHolder() {
        return placeHolder;
    }

    protected int getErrorHolder() {
        return errorHolder;
    }

    protected boolean isCenterCrop() {
        return isCenterCrop;
    }

    protected boolean isCircile() {
        return isCircile;
    }

    public boolean isGif() {
        return isGif;
    }

    public int[] getW_h() {
        return w_h;
    }
}
